import com.google.appengine.api.datastore.Entity

if(params.transitions && params.name){
	def comicShow = new Entity("comicShow")
	comicShow.transitions = params.transitions
	comicShow.name = params.name
	comicShow.save()

	response.status = 200
	out.write  '{"message":"success", "comic" : {"id":"'+comicShow.key.id+'", "name":"'+comicShow.name+'"}}'
} else { 
	response.status = 400
	out.write '{"message":"fail"}'
}

